package com.zxlspace.collection;

/**
 * 用作一个节点对象
 *
 */
public class Node {

     Node prev;  //上一个对象

     Object obj; //当前对象

     Node next;  //下一个对象

    public Node() {
    }

    public Node(Node prev, Object obj, Node next) {
        this.prev = prev;
        this.obj = obj;
        this.next = next;
    }

    public Node getPrev() {
        return prev;
    }

    public void setPrev(Node prev) {
        this.prev = prev;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }
}
